package com.mycompany.virtualApp.service;

import com.mycompany.virtualApp.dao.DesktopAdvDao;
import com.mycompany.virtualApp.dao.TabAdvDao;
import com.mycompany.virtualApp.entity.DesktopAdvModel;
import com.mycompany.virtualApp.entity.TabAdvModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.beans.DesignMode;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/12/6 0006.
 */
@Service("desktopAdvService")

public class DesktopAdvServiceImpl implements DesktopAdvService {
    @Autowired
    DesktopAdvDao desktopAdvDao;
    @Override
    public List<DesktopAdvModel> getDesktopAdvList(Map<String,Object> map) {
        return desktopAdvDao.getDesktopAdvList(map);
    }

    @Override
    public int saveDesktopAdv(DesktopAdvModel desktopAdvModel) {
        return desktopAdvDao.saveDesktopAdv(desktopAdvModel);
    }

    @Override
    public int updateDesk(DesktopAdvModel desktopAdvModel) {
        return desktopAdvDao.updateDesk(desktopAdvModel);
    }

    @Override
    public int delete(Map<String, Object> map) {
        return desktopAdvDao.delete(map);
    }
}
